// 菜单首页
// 菜单首页
// 菜单首页
import { defineStore } from "pinia";

const useTheMenu = defineStore("theMenu", {
  state: () => ({
    // 图标数据
    iconSrcArray: [
      { iconSrc: "zzjsz@2x.png" },
      { iconSrc: "sjy@2x.png" },
      { iconSrc: "sjsjwj@2x.png" },
      { iconSrc: "sjfxzg@2x.png" },
      { iconSrc: "yczcpd@2x.png" },
      { iconSrc: "sjwd@2x.png" },
      { iconSrc: "zhsj@2x.png" },
      { iconSrc: "jsxmsj@2x.png" },
      { iconSrc: "nkcs@2x.png" },
      { iconSrc: "nkjz@2x.png" },
      { iconSrc: "syalj@2x.png" },
      { iconSrc: "cysjgj@2x.png" },
      { iconSrc: "znyd@2x.png" },
      { iconSrc: "znft@2x.png" },
      { iconSrc: "gl@2x.png" },
      { iconSrc: "mxcs@2x.png" },
      { iconSrc: "zbfx@2x.png" },
      { iconSrc: "zdymx@2x.png" },
      { iconSrc: "sjcgk@2x.png" },
      { iconSrc: "ndjf@2x.png" },
      { iconSrc: "cjhtcx@2x.png" },
      { iconSrc: "jzhzhsj@2x.png" },
      { iconSrc: "sjzd@2x.png" },
      { iconSrc: "gwjy@2x.png" },
    ],
    // 未提交的备份数据
    uncommittedData: "",
    //实际数据数据
    menuList: "",
    // 初始化数据
    initializeTheData: [
      {
        title: "",
        linkNum: "6",
        linkArray: [
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
        ],
      },
      {
        title: "",
        linkNum: "3",
        linkArray: [
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
        ],
      },
      {
        title: "",
        linkNum: "4",
        linkArray: [
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
        ],
      },
      {
        title: "",
        linkNum: "4",
        linkArray: [
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
        ],
      },
      {
        title: "",
        linkNum: "6",
        linkArray: [
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
          {
            name: "",
            link: "",
            iconSrc: "",
          },
        ],
      },
    ],
  }),
  getters: {},
  actions: {},
  // 开启数据缓存
  persist: {
    enabled: false,
  },
});
export default useTheMenu;
